package io.sage.modules.statistics.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.sage.modules.statistics.dao.BStatisticsTemperatureMapper;
import io.sage.modules.statistics.entity.BStatisticsTemperature;
import io.sage.modules.statistics.service.BStatisticsTemperatureService;

/**
 * 传感器温度服务
 * @author xjh
 *
 */
@Service("statisticsTemperatureService")
public class BStatisticsTemperatureServiceImpl implements BStatisticsTemperatureService {

	@Autowired
	private BStatisticsTemperatureMapper statisticsTemperatureMapper;

	@Override
	public void deleteBatchIds(List<Integer> asList) {
		// TODO Auto-generated method stub

	}

	@Override
	public BStatisticsTemperature selectById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BStatisticsTemperature> selectStatisticsTemperatureList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return statisticsTemperatureMapper.selectStatisticsTemperatureList(params);
	}

	@Override
	public int insert(BStatisticsTemperature statisticsTemperature) {
		statisticsTemperature.setCreateTime(new Date());
		statisticsTemperature.setIsDeleted(0);
		statisticsTemperature.setIsUsed(1);
		return statisticsTemperatureMapper.insertSelective(statisticsTemperature);
	}

	@Override
	public int saveTemperatureList(List<BStatisticsTemperature> list) {
		// TODO Auto-generated method stub
		return statisticsTemperatureMapper.saveTemperatureList(list);
	}

	@Override
	public List<BStatisVo> selectListByWarehouseId(Map params) {
		return statisticsTemperatureMapper.selectListByWarehouseId(params);
	}

}
